﻿<Page
    x:Class="WellDone.CreditPaymentDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid
        x:Name="RootPanel"
        Background="#FF98DEF8"
        Opacity=".75"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch">

        <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Width="330" Height="410" >
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="100"/>
            </Grid.RowDefinitions>
            <TextBlock HorizontalAlignment="Center" Margin="0,10" FontSize="30" TextWrapping="Wrap" Text="Credit/Debit Payment" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Margin="10,60,0,0" FontSize="30" TextWrapping="Wrap" Text="Subtotal" Width="160" TextAlignment="Right" VerticalAlignment="Top"/>
            <TextBlock x:Name="tblkSubtotal" Width="110" HorizontalAlignment="Left" TextAlignment="Right" Margin="180,60,0,0" FontSize="30" TextWrapping="Wrap" Text="0.00" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Grid.Row="0" Margin="10,110,0,0" TextWrapping="Wrap" Text="Tip" FontSize="30" Width="160" TextAlignment="Right" VerticalAlignment="Top"/>
            <TextBox x:Name="tbTip" Width="120" Height="50" HorizontalAlignment="Left" Margin="180,100,0,0" TextWrapping="Wrap" TextAlignment="Right" Text="0.00" FontSize="30" VerticalAlignment="Top" SelectionHighlightColor="#FF98DEF8" TextChanged="tbTip_TextChanged"/>
            <TextBlock HorizontalAlignment="Left" Margin="10,160,0,0" FontSize="30" TextWrapping="Wrap" Text="Tax" Width="160" TextAlignment="Right" VerticalAlignment="Top"/>
            <TextBlock x:Name="tblkTax" Width="110" HorizontalAlignment="Left" TextAlignment="Right" Margin="180,160,0,0" FontSize="30" TextWrapping="Wrap" Text="0.00" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Margin="10,210,0,0" FontSize="30" TextWrapping="Wrap" Text="Total" Width="160" TextAlignment="Right" VerticalAlignment="Top"/>
            <TextBlock x:Name="tblkTotal" Width="110" HorizontalAlignment="Left" TextAlignment="Right" Margin="180,210,0,0" FontSize="30" TextWrapping="Wrap" Text="0.00" VerticalAlignment="Top"/>
            <TextBlock HorizontalAlignment="Left" Grid.Row="0" Margin="10,260,0,0" TextWrapping="Wrap" Text="Auth Code" FontSize="30" Width="160" TextAlignment="Right" VerticalAlignment="Top"/>
            <TextBox x:Name="tbAuthCode" Width="130" Height="50" HorizontalAlignment="Left" Margin="180,250,0,0" TextWrapping="Wrap" TextAlignment="Right" FontSize="30" VerticalAlignment="Top" SelectionHighlightColor="#FF98DEF8" MaxLength="6" />
            <Button x:Name="btnOK" Content="OK" Width="120" Height="85" FontSize="28" Margin="30,0,0,0" HorizontalAlignment="Left" Grid.Row="1" Click="btnOK_Click" />
            <Button x:Name="btnCancel" Content="Cancel" Width="120" Height="85" Margin="0,0,30,0" FontSize="28" HorizontalAlignment="Right" Grid.Row="1" Click="btnCancel_Click" />
        </Grid>
    </Grid>
</Page>
